package com.gitee.ixtf.vertx.kotlinx

import com.gitee.ixtf.core.kotlinx.bytes
import io.cloudevents.CloudEvent
import io.vertx.core.buffer.Buffer

fun CloudEvent.buffer(): Buffer = Buffer.buffer(bytes())

fun CloudEvent.jsonObject() = bytes().jsonObject()

fun CloudEvent.jsonArray() = bytes().jsonArray()
